#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main()
{
	//string st("123456789");
	//string::iterator it = st.begin()+3;
	//st.insert(it, 'b');
	////cout << *it;
	////cout << st;
	//for()
	//for (auto e : st)
	//{
	//	cout << e;
	//}
	int a[] = { 2,3,1,4,5,6,8,7,9 };
	sort(a, a + 9,greater<int>());
	for (auto e : a)
	{
		cout << e;
	}
}